package ru.spb.osll.myfit.common;

import com.google.gwt.user.client.rpc.IsSerializable;
import com.thoughtworks.xstream.annotations.XStreamAlias;

import java.io.Serializable;

/**
 * User: Artem Bukhonov
 * Date: 22.02.12
 * Time: 20:30
 */
@XStreamAlias("tag")
public class PageTag implements Serializable, IsSerializable, Comparable<PageTag> {
  private static final long serialVersionUID = 3841910001963737178L;

  @XStreamAlias("name")
  private String m_name;

  public PageTag() {
  }

  public PageTag(String name) {
    m_name = name;
  }

  public String getName() {
    return m_name;
  }

  public void setName(String name) {
    m_name = name;
  }

  public String getString() {
    return getName();
  }

  @Override
  public int compareTo(PageTag o) {
    return getName().compareTo(o.getName());
  }
}
